# $Id: PKGBUILD 86291 2013-03-14 20:09:27Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: <david@pako.st>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=chicken
pkgver=4.8.0.3
pkgrel=1
pkgdesc='Compiler for R5RS scheme, featuring handy extensions'
arch=('x86_64' 'i686')
url='http://call-cc.org/'
license=('BSD')
depends=('gcc')
source=("http://code.call-cc.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz")
sha256sums=('6a1414e6f35586e47d7f4470eaf1779a4f73dec664b14bebf8763dd804b399c3')

build() {
  cd "$pkgname-$pkgver"

  make -j1 PLATFORM=linux PREFIX=/usr
}

package() {
  cd "$pkgname-$pkgver"
  
  make -j1 PLATFORM=linux PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:
